package com.stiff.manage.service;

import com.github.abel533.entity.Example;
import com.stiff.manage.mapper.ItemParamItemMapper;
import com.stiff.manage.pojo.ItemParamItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class ItemParamItemService extends BaseService<ItemParamItem> {
    @Autowired
    private ItemParamItemMapper itemParamItemMapper;
    public void updateItemParamItem(Long itemId, String itemParams) {
        ItemParamItem record = new ItemParamItem();
        record.setParamData(itemParams);
        record.setUpdated(new Date());
        Example example = new Example(ItemParamItem.class);
        example.createCriteria().andEqualTo("itemId",itemId);
        this.itemParamItemMapper.updateByExampleSelective(record,example);
    }
}
